/**
 *  Base object for all respones from the service layer
 *
 *  @author Scott Monahan
 *  @version $Id$
 *  
 *  File last changed on $Date:$ by $Author:$ in $Rev:$
 *
 */

package info637.pprc.services;

import info637.pprc.ErrorCodes;

import java.util.ArrayList;
import java.util.List;

public abstract class ServiceResponse {

	private boolean isError = false;
	private List<ErrorCodes> errorCodes = new ArrayList<ErrorCodes>();
	
	public ServiceResponse() {
		
		;
	}
	
	public ServiceResponse(List<ErrorCodes> errorCodes) {
		
		this.isError = true;
		this.errorCodes = errorCodes;
	}
	
	public boolean isError() {
		
		return this.isError;
	}
	
	public List<ErrorCodes> getErrorCodes() {
		
		return this.errorCodes;
	}
}
